package com.atguigu.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 方法说明：
 * @MethodName 处理 /forwardC 请求的Servlet
 * @Description    
 * @Author Chen
 * @EMAIL <a href="2277411582@qq.com"></a>
 * @Date 2023/1/18 16:53  
 */
public class ForwardC extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("经过了ForwardC程序");
        /**
         * 实现请求转发,转发到 web/a/b/c.html页面
         * request.getRequestDispatcher("请求路径").forward(request, response);
         */
        request.getRequestDispatcher("/a/b/c.html").forward(request, response);
    }
}
